Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use enable_if to allow using containers of interfaces with object wrappers #683

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m-fila
Copy link
Contributor

@m-fila m-fila commented Sep 20, 2024

BEGINRELEASENOTES

  • Changed static_assert in interface constructor to enable_if to avoid compilation failure with gaudi data object wrappers

ENDRELEASENOTES

key4hep/k4FWCore#238 I spotted that the containers of interface types can't be used in stock Gaudi::Functional algorithms (unlike containers of data types) due to instantiating wrong constructor from the template.

Test will be added once I figure out why Gaudi::AnyDataWrapper might want to initialize a TrackerHit with vector of TrackerHits and be able to write a reproducer 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant